import {createRouter, createWebHistory} from "vue-router";
import HelloWorld from "@/components/HelloWorld.vue";


const routes = [
    {
        path: '/',
        name: 'home',
        component: HelloWorld
    },
    {
        path: '/about',
        name: 'about',
        component: () => import('@/components/views/AboutView.vue')
    },
    {
        path: '/contact',
        name: 'contact',
        component: () => import('@/components/views/ContactView.vue')
    },
    {
        path: '/products/app',
        name: 'mobile-app',
        component: () => import('@/components/views/MobileApp.vue')
    },
    {
        path: '/products/web',
        name: 'web-dev',
        component: () => import('@/components/views/WebDev.vue')
    },
    {
        path: '/products/YuanQu',
        name: 'YuanQu',
        component: () => import('@/components/views/YuanQu.vue')
    },
    {
        path: '/support',
        name: 'support',
        component: () => import('@/components/views/Support.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
